# 创建字典 key是1-5的数字  value是这个数字的平方
dict1 = {i: i ** 2 for i in range(1, 6)}
print(dict1)

# 将两个列表合并为一个字典
list1 = ['name', 'age', 'gender']
list2 = ['Tom', '20', 'man']
dict2 = {list1[i]: list2[i] for i in range(len(list1))}
print(dict2)

# 提取字典中的目标数据
counts = {'MBP': 268, 'HP': 125, 'DELL': 201, 'Lenovo': 199, 'acer': 99}

# 需求：提取上述电脑数量大于等于200的字典数据
count1 = {key: value for key, value in counts.items() if value >= 200}
print(count1)
